home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12759 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.0 KB

  1. Path: li.ee.ufl.edu!dan
  2. From: dan@PROBLEM_WITH_INEWS_DOMAIN_FILE (Daniel Wang)
  3. Newsgroups: comp.lang.c
  4. Subject: Help: RS232 comm. in sun UNIX
  5. Date: 2 Apr 1996 17:58:32 GMT
  6. Organization: University of Florida
  7. Message-ID: <4jrps8$28o@no-names.nerdc.ufl.edu>
  8. NNTP-Posting-Host: li.ee.ufl.edu
  9. Keywords: RS232 communication
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Dear Netters,
  13.     I have a problem to write a program to output
  14. ASCII characters from SUN serial port ("/dev/sttyb")
  15. to RS232 Terminal.
  16.     I used ioctl(fd, TIOCSETP, &mode) to set the
  17. communication parameters. Unfortuantely, my terminal
  18. device only get some garbages.
  19.     I know my terminal device is Board rate 300,
  20. 7 data bits, 1 stop bits with no flow control and
  21. parity check. The communication was successful on
  22. PC using bios call.
  23.     If you know how to do it or know where to
  24. get the hlep, please e-mail me to "dan@li.ee.ufl.edu".
  25. Thank you very very much.
  26.  
  27. --
  28. Sincerely,
  29.  
  30. Daniel C. Wang
  31.  
  32. Department of Electrical and Computer Engineer
  33. University of Florida
  34. dan@li.ee.ufl.edu    (352)392-4900
  35.